-- GENERATED SPELL FOR [Cathela the Seeker] --


function spell0_17911(pUnit, Event) --@Holy Shield,Self--
pUnit:FullCastSpellOnTarget(32777,pUnit)
pUnit:RegisterEvent('Sorts_17911', 10310, 1)
end

function spell1_17911(pUnit, Event) --@Redoubt,Self--
pUnit:FullCastSpellOnTarget(32776,pUnit)
pUnit:RegisterEvent('Sorts_17911', 10304, 1)
end

function Sorts_17911(pUnit, Event)
local choix_sorts_17911 = math.random(0, 1)
if choix_sorts_17911 == 0 then
pUnit:RegisterEvent('spell0_17911', 1, 1)
end
if choix_sorts_17911 == 1 then
pUnit:RegisterEvent('spell1_17911', 1, 1)
end
end

function mob17911_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17911', math.random(1500, 3000), 1)
end

function mob17911_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17911_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17911_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17911, 1, 'mob17911_Action')
RegisterUnitEvent(17911, 2, 'mob17911_Leave')
RegisterUnitEvent(17911, 3, 'mob17911_Kill')
RegisterUnitEvent(17911, 4, 'mob17911_Die')
